package com.zb.framework.wechatnews.common;

/**
 * @Auther: 周作为
 * @Date: 2019/6/18 11:18
 * @Description: 异常枚举类
 */
public enum EnumsError {

    FAIL(000, "操作失败"),
    SUCCESS(100, "操作成功"),
    BASEMESSAGE_ISEMPTY(110, "基础信息不能为null"),
    MSGTYPE_ISEMPTY(120, "发送消息类型不能为空"),
    RECEIVE_ISEMPTY(121,"成员ID、部门ID、标签ID不能同时为空"),
    AGENTID_ISEMPTY(131, "应用ID不能为空"),
    WEIXIN_CONNECT_FAILED(132, "请求微信接口失败"),
    WEIXIN_HAPPEN_EXCEPTION(133, "请求微信接口发生未知错误"),
    APPLY_TOKEN_FAILED(134, "请求应用token发生未知错误"),
    SENDMESSAGE_FAILED(135, "发送企业微信消息失败"),
    UPDATE_TASK_CARD(136, "任务卡片按钮状态更新失败");

    private int code;

    private String msg;

    EnumsError(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }


    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }}
